import { ColumnProps } from "@/components/Table/type";
import { ElTag } from "element-plus";
export const columns: ColumnProps[] = [
  { type: "index", label: "#", width: 50 },
  { prop: "processName", label: "流程名称", search: { el: "input" } },
  {
    prop: "suspended",
    label: "流程状态",
    render: ({ row }) => {
      if (row["suspended"]) {
        return <ElTag type="danger">挂起</ElTag>;
      } else {
        return <ElTag>激活</ElTag>;
      }
    }
  },
  { prop: "version", label: "版本号" },
  { prop: "versionTag", label: "版本标签", search: { el: "input" } },
  { prop: "deploymentTime", label: "部署时间" },
  { prop: "action", label: "操作", width: 200, fixed: "right" }
];
